import 'package:flutter/material.dart';
import 'package:ytbusiness/utils/screen_adaptation.dart';

//文本消息
class MessageText extends StatefulWidget {
  @override
  _MessageTextState createState() => _MessageTextState();
}

class _MessageTextState extends State<MessageText> {
  @override
  Widget build(BuildContext context) {
    return ConstrainedBox(
      constraints: BoxConstraints(
        minWidth: 0.0,
        maxWidth: setWidth(273),
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.end,
        children: [
          Container(
            padding: EdgeInsets.symmetric(
                horizontal: setWidth(12), vertical: setWidth(15)),
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.circular(setWidth(10)),
            ),
            child: Text(
              '你好呀你好呀你好呀你好呀你好呀你好呀你好呀你¥'
              '你好呀你好呀你好呀你好呀你好呀你好呀你好呀你'
              '你好呀你好呀你好呀你好呀你好呀你好呀你好呀你',
              style: TextStyle(
                fontSize: setSp(15),
                color: Color(0xff333333),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
